package com.gjy.pd.factorysimple;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2022-12-15 09:25:42
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {

//        SimpleProduct product = SimpleFactory.getProduct(ProductB.class);
//        System.out.println(product.info());

        SimpleProduct product = SimpleFactoryPro.getProduct(ProductC.class, "Hello");
        System.out.println(product.info());
    }
}
